<?php

  /**
    TravianWAP configuration file
    PLEASE, Leave it alone, if you don't 100% know what you are doing.
  **/
  
  define("ALLOW_UPDATE",        1); // Comment this if you don't want to allow users to check for update
  define("CALCULATE_REMAINING", 1); // Use this if you want script to calculate how many resources are required for construction (and construction times)
  define("USE_PREFIXES",        1); // Use the kilo and hekto prefixes (2k = 2000).
  define("DISPLAY_GTVO",        1); // Display ">" link at change village
  
  /*
    M E N U    S E C T I O N
    It defines wich links should be displayed with different modules
    
    $tw_link["module"][] = array("link", "title", Use_PS('?')-Bool = False, array(exclude_modules)* = array());
    
    Example:
      $tw_link[M_ALL][] = array("main.php?mod=menu",  "Menu", False, array("menu"));
      $tw_link["main"][] = array("main.php?mod=village_look", "Village overview");

    To print link at all mdodules, add module name M_ALL (uppercase, and without quotes)

    * Last paramater applies only if M_ALL is set. Otherwise it's ignored.
  */
  
  $tw_link[M_ALL][]           = array("main.php?mod=menu",         "Menu",               False,    array("menu", "logout"));
  $tw_link[M_ALL][]           = array("main.php?mod=logout",       "Logout",             False,    array("logout"));

  $tw_link["main"][]          = array("main.php?mod=village_look", "Village overview");
  $tw_link["village_look"][]  = array("main.php?mod=main",         "Resource overview");
  
  $tw_link["menu"][]          = array("main.php?mod=village_look", "Village overview");
  $tw_link["menu"][]          = array("main.php?mod=main",         "Resource overview");
  $tw_link["menu"][]          = array("main.php?mod=chgvill",      "Change village");
  $tw_link["menu"][]          = array("main.php?mod=villover",     "Overview villages");
  $tw_link["menu"][]          = array("main.php?mod=about",        "About");
  
  $tw_link["construct"][]     = array("main.php?mod=village_look", "Village overview");
  $tw_link["construct"][]     = array("main.php?mod=main",         "Resource overview");
  
  $tw_link["details_build"][] = array("main.php?mod=village_look", "Village overview");